package org.fuys.coder.infrastructure.scheduled;

import org.fuys.coder.domain.model.service.IUserModelService;
import org.springframework.scheduling.annotation.Scheduled;
import org.springframework.stereotype.Component;

import javax.annotation.Resource;

/**
 * @projectName: fuys-low-coder
 * @package: org.fuys.coder.infrastructure.scheduled
 * @className: UpdateUserModelToDB
 * @author: WangJing
 * @description: 更新用户模型定时任务
 * @date: 2024/9/4 16:23
 * @version: 1.0
 */
@Component
public class UpdateUserModelToDB {


    @Resource
    private IUserModelService userModelService;

    @Scheduled(cron = "0 0 0 1 * ?")
    public void updateUserModelToDB(){
        userModelService.enduranceUserModel();
    }

}
